package com.zx.mes.hyl.zuul.pagemodel;


import com.zx.mes.hyl.common.util.jwt.JWTInfoI;

/**
 * @author hyl
 * @date 2017-12-17
 */
public class UserInfo implements JWTInfoI {

    private String username;
    private String name;
    private String userId;
    private String password;

    public UserInfo(){}
    public UserInfo(String username, String name, String userId, String password) {
        this.username = username;
        this.name = name;
        this.userId = userId;
        this.password = password;
    }

    @Override
    public String getUniqueName() {
        return username;
    }

    @Override
    public String getId() {
        return userId;
    }

    @Override
    public String getName() {
        return name;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
